package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 合同协议缔约客户表
 * </p>
 *
 * @author LX
 * @since 2018-09-17
 */
@TableName("erp_contract_customer")
public class ErpContractCustomer extends Model<ErpContractCustomer> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 合同所属的客户id
     */
    private Integer pid;
    /**
     * 合同id
     */
    @TableField("contract_id")
    private Integer contractId;
    /**
     * 合同名称
     */
    @TableField("contract_name")
    private String contractName;
    /**
     * 合同编号
     */
    @TableField("contract_code")
    private String contractCode;
    /**
     * 缔约客户id
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 缔约客户名称
     */
    @TableField("customer_name")
    private String customerName;
    /**
     * 录入人姓名
     */
    @TableField("input_person")
    private String inputPerson;
    /**
     * 录入人id
     */
    @TableField("input_id")
    private Integer inputId;
    /**
     * 缔约时间
     */
    @TableField("contracting_date")
    private String contractingDate;

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    /**
     *上面的时间转换类型
     *
     */
    private  transient  String date;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getContractId() {
        return contractId;
    }

    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getInputPerson() {
        return inputPerson;
    }

    public void setInputPerson(String inputPerson) {
        this.inputPerson = inputPerson;
    }

    public Integer getInputId() {
        return inputId;
    }

    public void setInputId(Integer inputId) {
        this.inputId = inputId;
    }

    public String getContractingDate() {
        return contractingDate;
    }

    public void setContractingDate(String contractingDate) {
        this.contractingDate = contractingDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpContractCustomer{" +
        ", id=" + id +
        ", pid=" + pid +
        ", contractId=" + contractId +
        ", contractName=" + contractName +
        ", contractCode=" + contractCode +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", inputPerson=" + inputPerson +
        ", inputId=" + inputId +
        ", contractingDate=" + contractingDate +
        "}";
    }
}
